package com.practice;

import java.util.Scanner;

public class Demo01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个行数：");
        int row = sc.nextInt();
        System.out.println("请输入一个列数：");
        int column = sc.nextInt();

        for (int c = 0; c < column; c++) {
            for (int r = 0; r < row; r++) {
                System.out.print("#");
            }
            System.out.print("\n");
        }
    }
}
